/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package parser;

import java.awt.Color;

/**
 *
 * @author nate
 */
public class AggregationPhrase extends XisYPhrase
{
    private String parentClass;
    private String childClass;
    
    public AggregationPhrase(String agg, String p, String c)
    {
        super(agg);
        
        parentClass = p;
        childClass = c;
        
        
            
    }
    @Override
    public void Print()
    {
        System.out.println(xisyPhrase + ": I aggregate things - " + childClass + " is a child of " + parentClass);
    }
    
    @Override
    public Color getColor()
    {
        return Color.cyan;
    }
    
    public String getAssociations()
    {
        return (parentClass + "#" + childClass);
    }

    public String getType()
    {
        return "aggregation";
    }
}
